import { Module } from '@nestjs/common';
import { MongooseModule } from '@nestjs/mongoose';
import { TypeOrmModule } from '@nestjs/typeorm';
import { ChargeOrder } from 'src/entities/ChargeOrder';
import { ChargeOrderRealTimeInfo, ChargeOrderRealTimeInfoSchema } from 'src/schemas/ChargeOrderRealTimeInfo.schema';
import { ChargeOrderController } from './charge-order.controller';
import { ChargeOrderService } from './charge-order.service';

@Module({
  imports : [TypeOrmModule.forFeature([ChargeOrder]), MongooseModule.forFeature([{ name: ChargeOrderRealTimeInfo.name, collection : ChargeOrderRealTimeInfo.name, schema: ChargeOrderRealTimeInfoSchema }])],
  controllers: [ChargeOrderController],
  providers: [ChargeOrderService],
  exports : [ChargeOrderService]
})
export class ChargeOrderModule {}
